<template>
  <tr>
    <td>{{category.id}}</td>
    <td>{{category.name}}</td>
    <td>{{status}}</td>
    <td>
      <div class="button-group">
         <el-button type="danger" icon="el-icon-delete" @click="$emit('del')" circle></el-button>
      </div>
    </td>
  </tr>
</template>

<script>
export default {
    name: "CategoryItem",
    props:{
        category:Object
    },
    computed:{
      status(){
        return this.category.status=='1'?'正常':'已删除';
      }
    }
};
</script>

<style></style>
